home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Bus / B / BPlan.cpt / Business Plan™ 1.2 / background_2775.txt < prev    next >
Text File  |  1990-08-11  |  16KB  |  648 lines

  1. -- background: 2775 from stack: in.2
  2. -- bmap block id: 12158
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=423 top=56 right=70 bottom=500
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 65535
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: closingBal
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 01
  24. -- high flags: 0002
  25. -- rect: left=423 top=91 right=105 bottom=500
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 65535
  29. -- font id: 3
  30. -- text size: 9
  31. -- style flags: 0
  32. -- line height: 12
  33. -- part name: newDepositsTotal
  34.  
  35.  
  36. -- part 4 (field)
  37. -- low flags: 01
  38. -- high flags: 0002
  39. -- rect: left=423 top=126 right=140 bottom=502
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 65535
  43. -- font id: 3
  44. -- text size: 9
  45. -- style flags: 256
  46. -- line height: 12
  47. -- part name: subtotal
  48.  
  49.  
  50. -- part 6 (field)
  51. -- low flags: 01
  52. -- high flags: 0007
  53. -- rect: left=113 top=44 right=260 bottom=216
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 65535
  57. -- font id: 3
  58. -- text size: 9
  59. -- style flags: 0
  60. -- line height: 12
  61. -- part name: cksOut
  62.  
  63.  
  64. -- part 8 (button)
  65. -- low flags: 00
  66. -- high flags: 2000
  67. -- rect: left=323 top=243 right=283 bottom=374
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 600 / 600
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: Erase All
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   if the optionkey is down then
  79.     put empty into bg fld "closingBal"
  80.     put empty into bg fld "lastrec"
  81.     put empty into bg fld "out"
  82.   end if
  83.  
  84.   put empty into bg fld "cleared"
  85.   put empty into bg fld "cksOut"
  86.   put empty into bg fld "cksOutTotal"
  87.   put empty into bg fld "newDeposits"
  88.   put empty into bg fld "NewDeps"
  89.   put empty into bg fld "newDepositsTotal"
  90.   put empty into bg fld "subTotal"
  91.   put empty into bg fld "cksOutstanding"
  92.   put empty into bg fld "balance"
  93. end mouseUp
  94.  
  95.  
  96.  
  97. -- part 9 (field)
  98. -- low flags: 01
  99. -- high flags: 0002
  100. -- rect: left=423 top=161 right=175 bottom=500
  101. -- title width / last selected line: 0
  102. -- icon id / first selected line: 0 / 0
  103. -- text alignment: 65535
  104. -- font id: 3
  105. -- text size: 9
  106. -- style flags: 0
  107. -- line height: 12
  108. -- part name: cksOutstanding
  109.  
  110.  
  111. -- part 11 (field)
  112. -- low flags: 01
  113. -- high flags: 0002
  114. -- rect: left=113 top=259 right=274 bottom=200
  115. -- title width / last selected line: 0
  116. -- icon id / first selected line: 0 / 0
  117. -- text alignment: 65535
  118. -- font id: 3
  119. -- text size: 9
  120. -- style flags: 256
  121. -- line height: 12
  122. -- part name: cksOutTotal
  123.  
  124.  
  125. -- part 12 (field)
  126. -- low flags: 01
  127. -- high flags: 0002
  128. -- rect: left=423 top=196 right=210 bottom=500
  129. -- title width / last selected line: 0
  130. -- icon id / first selected line: 0 / 0
  131. -- text alignment: 65535
  132. -- font id: 3
  133. -- text size: 9
  134. -- style flags: 256
  135. -- line height: 12
  136. -- part name: balance
  137.  
  138.  
  139. -- part 13 (button)
  140. -- low flags: 00
  141. -- high flags: A003
  142. -- rect: left=405 top=252 right=274 bottom=499
  143. -- title width / last selected line: 0
  144. -- icon id / first selected line: 0 / 0
  145. -- text alignment: 1
  146. -- font id: 0
  147. -- text size: 12
  148. -- style flags: 0
  149. -- line height: 16
  150. -- part name: Compute
  151. ----- HyperTalk script -----
  152. on mouseUp
  153.   if bg fld "closingBal" is empty then
  154.     play harpsichord c6
  155.     answer "You must enter the bank's closing balance before you "& "attempt to reconcile your checking account."
  156.     get the loc of bg fld "closingBal"
  157.     click at it
  158.     exit mouseup
  159.   end if
  160.  
  161.   set lockscreen to true
  162.   go cd "main"
  163.   put bg fld "balance" into curBal
  164.   go cd "reconcile"
  165.   global match
  166.   set numberformat to "0.00"
  167.   -- CLEAR CHECKS
  168.   if bg fld "cleared" is not empty then
  169.     put 1 into x
  170.     repeat for the number of lines in bg fld "cleared"
  171.       set cursor to busy
  172.       put 0 into lastPos
  173.       put line x of bg fld "cleared" into checkNum
  174.       set lockscreen to true
  175.       go cd "checkList"
  176.       put find (bg fld "checkList",match & checkNum) into lastPos
  177.       if item 1 of lastPos is not 0 then
  178.         if item 2 of line (item 1 of lastPos) of bg fld "checkList" = checkNum then
  179.           put "1" into item 5 of line (item 1 of lastPos) of bg fld "checkList"
  180.           go cd "reconcile"
  181.           delete line x of bg fld "cleared"
  182.         end if
  183.       else
  184.         go cd "reconcile"
  185.         put x + 1 into x
  186.       end if
  187.     end repeat
  188.     if bg fld "cleared" is not empty then
  189.       -- CLEAR DEPOSITS
  190.       put 1 into x
  191.       repeat for the number of lines in bg fld "cleared"
  192.         set cursor to busy
  193.         put 0 into lastPos
  194.         put line x of bg fld "cleared" into checkNum
  195.         set lockscreen to true
  196.         go cd "deposits"
  197.         put find (bg fld "deposit",match & checkNum) into lastPos
  198.         if item 1 of lastPos is not 0 then
  199.           if item 2 of line (item 1 of lastPos) of bg fld "deposit" = checkNum then
  200.             put "1" into item 5 of line (item 1 of lastPos) of bg fld "deposit"
  201.             go cd "reconcile"
  202.             delete line x of bg fld "cleared"
  203.           end if
  204.         else
  205.           go cd "reconcile"
  206.           put x + 1 into x
  207.         end if
  208.       end repeat
  209.     end if
  210.   end if
  211.   if bg fld "cleared" is not empty then
  212.     play harpsichord c6
  213.     answer "Some items were not cleared or were not found in your "& "check register."
  214.   end if
  215.   -- LIST OUTSTANDING CHECKS
  216.   set lockscreen to true
  217.   go cd "checkList"
  218.   put 1 into x
  219.   repeat for the number of lines in bg fld "checklist"
  220.     set cursor to busy
  221.     if item 5 of line x of bg fld "checklist" is "0" then
  222.       put item 2 of line x of bg fld "checklist" & "," & item 4 of line x of bg fld "checklist" & return after tempList
  223.     end if
  224.     put x + 1 into x
  225.   end repeat
  226.   go cd "reconcile"
  227.   put templist into bg fld "cksOut"
  228.   -- ADDING OUTSTANDING CHECKS
  229.   put 0 into subtotal
  230.   put 1 into x
  231.   repeat for the number of lines in bg fld "cksOut"
  232.     add item 2 of line x of bg fld "cksOut" to subtotal
  233.     put x + 1 into x
  234.   end repeat
  235.   put subtotal into bg fld "cksOutTotal"
  236.   put subtotal into bg fld "cksOutstanding"
  237.   -- LISTING OUTSTANDING DEPOSITS
  238.   put 0 into subtotal
  239.   put empty into tempList
  240.   put 1 into x
  241.   go cd "deposits"
  242.   repeat for the number of lines in bg fld "deposit"
  243.     set cursor to busy
  244.     if item 5 of line x of bg fld "deposit" is "0" then
  245.       put item 2 of line x of bg fld "deposit" & "," & item 4 of line x of bg fld "deposit" & return after tempList
  246.     end if
  247.     put x + 1 into x
  248.   end repeat
  249.   go cd "reconcile"
  250.   put templist into bg fld "newDeposits"
  251.   put 1 into x
  252.   repeat for the number of lines in bg fld "newDeposits"
  253.     add item 2 of line x of bg fld "newDeposits" to subtotal
  254.     put x + 1 into x
  255.   end repeat
  256.   put subtotal into bg fld "newDepositsTotal"
  257.   -- BANK BALANCE & DEPOSITS
  258.   put bg fld "closingBal" into bal
  259.   put bg fld "newDepositsTotal" into bg fld "newDeps"
  260.   put bg fld "newDepositsTotal" + bal into bg fld "subtotal"
  261.   put "$" & bg fld "subtotal" - bg fld "cksOutstanding" into bg fld "balance"
  262.   if bg fld "subtotal" - bg fld "cksOutstanding" = curBal then
  263.     play "hallelujah"
  264.     answer "Congratulations!  Your account has been reconciled!"
  265.     put the short date into bg fld "lastRec"
  266.     put empty into bg fld "out"
  267.   else
  268.     play "oops"
  269.     put (bg fld "subtotal" - bg fld "cksOutstanding") - curBal into temp
  270.     answer "Your account is out of balance by $" & temp & ".  Make sure you've cancelled the correct items and that check "& "amounts are entered correctly.  Press the PANIC button for more help."
  271.     put "OUT OF BALANCE BY $" & temp into bg fld "out"
  272.     put "--" into bg fld "lastRec"
  273.   end if
  274.   set scroll of bg fld "cksOut" to 0
  275.   set scroll of bg fld "newDeposits" to 0
  276.   set scroll of bg fld "cleared" to 0
  277. end mouseUp
  278.  
  279.  
  280. -- part 16 (field)
  281. -- low flags: 00
  282. -- high flags: 0007
  283. -- rect: left=8 top=44 right=260 bottom=111
  284. -- title width / last selected line: 0
  285. -- icon id / first selected line: 0 / 0
  286. -- text alignment: 65535
  287. -- font id: 3
  288. -- text size: 9
  289. -- style flags: 0
  290. -- line height: 12
  291. -- part name: cleared
  292.  
  293.  
  294. -- part 17 (button)
  295. -- low flags: 00
  296. -- high flags: A000
  297. -- rect: left=253 top=288 right=337 bottom=304
  298. -- title width / last selected line: 0
  299. -- icon id / first selected line: 7420 / 7420
  300. -- text alignment: 1
  301. -- font id: 0
  302. -- text size: 12
  303. -- style flags: 0
  304. -- line height: 16
  305. -- part name: Main
  306. ----- HyperTalk script -----
  307. on mouseUp
  308.   visual iris open to inverse
  309.   visual dissolve
  310.   go cd "main"
  311. end mouseUp
  312.  
  313.  
  314.  
  315. -- part 18 (button)
  316. -- low flags: 00
  317. -- high flags: A000
  318. -- rect: left=305 top=288 right=337 bottom=356
  319. -- title width / last selected line: 0
  320. -- icon id / first selected line: 20953 / 20953
  321. -- text alignment: 1
  322. -- font id: 0
  323. -- text size: 12
  324. -- style flags: 0
  325. -- line height: 16
  326. -- part name: Categories
  327. ----- HyperTalk script -----
  328. on mouseUp
  329.   set lockscreen to true
  330.   go cd "main"
  331.   put bg fld "categories" into categories
  332.   go back
  333.   DoList 998,categories,1
  334.   if the result > 0 then
  335.     put item 2 of the result into category
  336.   end if
  337.   go cd category
  338. end mouseUp
  339.  
  340.  
  341.  
  342. -- part 19 (button)
  343. -- low flags: 00
  344. -- high flags: A000
  345. -- rect: left=45 top=288 right=337 bottom=96
  346. -- title width / last selected line: 0
  347. -- icon id / first selected line: 17885 / 17885
  348. -- text alignment: 1
  349. -- font id: 0
  350. -- text size: 12
  351. -- style flags: 0
  352. -- line height: 16
  353. -- part name: Home
  354. ----- HyperTalk script -----
  355. on mouseUp
  356.   if the optionkey is down then
  357.     domenu "quit hypercard"
  358.     exit mouseUp
  359.   end if
  360.   visual iris open to inverse
  361.   visual dissolve
  362.   go home
  363. end mouseUp
  364.  
  365.  
  366.  
  367. -- part 20 (button)
  368. -- low flags: 00
  369. -- high flags: A000
  370. -- rect: left=357 top=288 right=337 bottom=408
  371. -- title width / last selected line: 0
  372. -- icon id / first selected line: 26574 / 26574
  373. -- text alignment: 1
  374. -- font id: 0
  375. -- text size: 12
  376. -- style flags: 0
  377. -- line height: 16
  378. -- part name: Deposits
  379. ----- HyperTalk script -----
  380. on mouseUp
  381.   visual iris open to inverse
  382.   visual dissolve
  383.   go cd "deposits"
  384. end MouseUp
  385.  
  386.  
  387.  
  388. -- part 21 (button)
  389. -- low flags: 00
  390. -- high flags: A000
  391. -- rect: left=409 top=288 right=337 bottom=460
  392. -- title width / last selected line: 0
  393. -- icon id / first selected line: 21690 / 21690
  394. -- text alignment: 1
  395. -- font id: 0
  396. -- text size: 12
  397. -- style flags: 0
  398. -- line height: 16
  399. -- part name: Register
  400. ----- HyperTalk script -----
  401. on mouseUp
  402.   visual iris open to inverse
  403.   visual dissolve
  404.   go cd "checklist"
  405. end mouseUp
  406.  
  407.  
  408.  
  409. -- part 24 (button)
  410. -- low flags: 00
  411. -- high flags: 2000
  412. -- rect: left=462 top=28 right=51 bottom=502
  413. -- title width / last selected line: 0
  414. -- icon id / first selected line: 6720 / 6720
  415. -- text alignment: 1
  416. -- font id: 0
  417. -- text size: 12
  418. -- style flags: 0
  419. -- line height: 16
  420. -- part name: 
  421. ----- HyperTalk script -----
  422. on mouseUp
  423.   go back
  424. end mouseUp
  425.  
  426.  
  427.  
  428. -- part 25 (button)
  429. -- low flags: 00
  430. -- high flags: A000
  431. -- rect: left=201 top=288 right=337 bottom=252
  432. -- title width / last selected line: 0
  433. -- icon id / first selected line: 1007 / 1007
  434. -- text alignment: 1
  435. -- font id: 0
  436. -- text size: 12
  437. -- style flags: 0
  438. -- line height: 16
  439. -- part name: Print...
  440. ----- HyperTalk script -----
  441. on mouseUp
  442.   domenu "print card"
  443. end mouseUp
  444.  
  445.  
  446.  
  447. -- part 26 (button)
  448. -- low flags: 00
  449. -- high flags: A000
  450. -- rect: left=97 top=288 right=337 bottom=148
  451. -- title width / last selected line: 0
  452. -- icon id / first selected line: 21060 / 21060
  453. -- text alignment: 1
  454. -- font id: 0
  455. -- text size: 12
  456. -- style flags: 0
  457. -- line height: 16
  458. -- part name: Help
  459. ----- HyperTalk script -----
  460. on mouseUp
  461.   DoList 998,"About Business Plan,"& "Adding categories,Category viewing,Check register,"& "Comparing reports,Creating reports,Deleting categories,"& "Deleting entries,Editing entries,Entering checks,"& "Entering deposits,Importing,"& "Opening reports,Period report,Printing reports,Reconciling,"& "Reports,Saving reports,Searching for items,Shareware notice,"& "Sorting checks,Yearly report",1
  462.   if the result > 0 then
  463.     put item 2 of the result into theTopic
  464.     put "‚óä‚óä " & thetopic into thetopic
  465.     visual iris open to inverse
  466.     visual dissolve
  467.     go cd "Help"
  468.     find string theTopic in bg fld "help"
  469.   end if
  470.   click at 100,0
  471. end mouseUp
  472.  
  473.  
  474.  
  475.  
  476. -- part 27 (button)
  477. -- low flags: 00
  478. -- high flags: 2000
  479. -- rect: left=426 top=28 right=51 bottom=460
  480. -- title width / last selected line: 0
  481. -- icon id / first selected line: 19678 / 19678
  482. -- text alignment: 1
  483. -- font id: 0
  484. -- text size: 12
  485. -- style flags: 0
  486. -- line height: 16
  487. -- part name: 
  488. ----- HyperTalk script -----
  489. on mouseUp
  490.   visual iris open to inverse
  491.   visual dissolve
  492.   go cd "about"
  493. end mouseUp
  494.  
  495.  
  496.  
  497. -- part 28 (button)
  498. -- low flags: 00
  499. -- high flags: A000
  500. -- rect: left=149 top=288 right=337 bottom=200
  501. -- title width / last selected line: 0
  502. -- icon id / first selected line: 17584 / 17584
  503. -- text alignment: 1
  504. -- font id: 0
  505. -- text size: 12
  506. -- style flags: 0
  507. -- line height: 16
  508. -- part name: Panic
  509. ----- HyperTalk script -----
  510. on mouseUp
  511.   Zoomer 142,288,193,337,154,144,354,229
  512.   Zoomer 154,144,354,229,2,23,510,339
  513.   set visible of cd fld "panic" to true
  514. end mouseUp
  515.  
  516.  
  517.  
  518. -- part 31 (field)
  519. -- low flags: 01
  520. -- high flags: 0007
  521. -- rect: left=218 top=44 right=260 bottom=321
  522. -- title width / last selected line: 0
  523. -- icon id / first selected line: 0 / 0
  524. -- text alignment: 65535
  525. -- font id: 3
  526. -- text size: 9
  527. -- style flags: 0
  528. -- line height: 12
  529. -- part name: newDeposits
  530.  
  531.  
  532. -- part 33 (field)
  533. -- low flags: 01
  534. -- high flags: 0002
  535. -- rect: left=218 top=259 right=274 bottom=305
  536. -- title width / last selected line: 0
  537. -- icon id / first selected line: 0 / 0
  538. -- text alignment: 65535
  539. -- font id: 3
  540. -- text size: 9
  541. -- style flags: 256
  542. -- line height: 12
  543. -- part name: newDeps
  544.  
  545.  
  546. -- part 35 (button)
  547. -- low flags: 00
  548. -- high flags: 2000
  549. -- rect: left=3 top=307 right=340 bottom=38
  550. -- title width / last selected line: 0
  551. -- icon id / first selected line: 19381 / 19381
  552. -- text alignment: 1
  553. -- font id: 0
  554. -- text size: 12
  555. -- style flags: 0
  556. -- line height: 16
  557. -- part name: 
  558. ----- HyperTalk script -----
  559. on mouseUp
  560.   go prev cd
  561. end mouseUp
  562.  
  563.  
  564.  
  565. -- part 36 (button)
  566. -- low flags: 00
  567. -- high flags: 2000
  568. -- rect: left=475 top=307 right=340 bottom=510
  569. -- title width / last selected line: 0
  570. -- icon id / first selected line: 22308 / 22308
  571. -- text alignment: 1
  572. -- font id: 0
  573. -- text size: 12
  574. -- style flags: 0
  575. -- line height: 16
  576. -- part name: 
  577. ----- HyperTalk script -----
  578. on mouseUp
  579.   go next cd
  580. end mouseUp
  581.  
  582.  
  583.  
  584. -- part 39 (field)
  585. -- low flags: 01
  586. -- high flags: 0000
  587. -- rect: left=449 top=220 right=234 bottom=506
  588. -- title width / last selected line: 0
  589. -- icon id / first selected line: 0 / 0
  590. -- text alignment: 0
  591. -- font id: 3
  592. -- text size: 9
  593. -- style flags: 0
  594. -- line height: 12
  595. -- part name: lastRec
  596.  
  597.  
  598. -- part 40 (field)
  599. -- low flags: 01
  600. -- high flags: 0000
  601. -- rect: left=331 top=220 right=234 bottom=450
  602. -- title width / last selected line: 0
  603. -- icon id / first selected line: 0 / 0
  604. -- text alignment: 65535
  605. -- font id: 3
  606. -- text size: 9
  607. -- style flags: 256
  608. -- line height: 12
  609. -- part name: 
  610.  
  611.  
  612. -- part 37 (field)
  613. -- low flags: 81
  614. -- high flags: 0004
  615. -- rect: left=65 top=72 right=297 bottom=442
  616. -- title width / last selected line: 0
  617. -- icon id / first selected line: 0 / 0
  618. -- text alignment: 0
  619. -- font id: 3
  620. -- text size: 9
  621. -- style flags: 0
  622. -- line height: 12
  623. -- part name: help
  624. ----- HyperTalk script -----
  625. on mouseUp
  626.   Zoomer 65,72,442,297,154,144,354,229
  627.   Zoomer 154,144,354,229,3,286,25,308
  628.   hide pict of this cd
  629.   hide bg fld "help"
  630.  
  631. end mouseUp
  632.  
  633.  
  634.  
  635.  
  636. -- part 42 (field)
  637. -- low flags: 01
  638. -- high flags: 0000
  639. -- rect: left=321 top=235 right=249 bottom=508
  640. -- title width / last selected line: 0
  641. -- icon id / first selected line: 0 / 0
  642. -- text alignment: 1
  643. -- font id: 3
  644. -- text size: 9
  645. -- style flags: 256
  646. -- line height: 12
  647. -- part name: out
  648.